import request from '@/utils/request'
export function getJobs (params) {
  return request({
    url: '/api/Case/CaseJob/GetJobs',
    method: 'get',
    params
  })
}

export function getEmployees () {
  return request({
    url: '/api/Case/CaseJob/GetEmployees',
    method: 'get',
  })
}

export function getFlows (params) {
  return request({
    url: '/api/Case/CaseJob/GetFlows',
    method: 'get',
    params
  })
}

export function addJob (data) {
  return request({
    url: '/api/Case/CaseJob/AddJob',
    method: 'post',
    data
  })
}

export function editJob (data) {
  return request({
    url: '/api/Case/CaseJob/EditJob',
    method: 'post',
    data
  })
}

export function deleteJob (id) {
  return request({
    url: '/api/Case/CaseJob/DeleteJob',
    method: 'get',
    params: {
      id
    }
  })
}